<?php

use Illuminate\Routing\Router;

Route::group([
    'prefix' => 'admin/creators',
    'namespace' => 'Frieza\\Modules\\Creators\\Controllers',
    'middleware' => [
        'web',
        'admin'
    ],
], function (Router $router) {
    $router->get('/collage/list','CollageController@collageList');
    $router->post('/collage/list','CollageController@collageSubmit');
    $router->put('/collage/list/{id}','CollageController@collageSubmit');
    $router->delete('/collage/list/{id}','CollageController@collageDelete');
    $router->post('/collage/sort','CollageController@collageWeight');


    $router->get('/topic/list','TopicController@topicList');
    $router->get('/topic/list/create','TopicController@create');
    $router->get('/topic/list/{id}/edit','TopicController@edit');
    $router->post('/topic/save','TopicController@save');
    $router->post('/topic/{id}/update','TopicController@editSave');
    $router->delete('/topic/list/{id}','TopicController@deletebyId');
    $router->post('/topic/sort','TopicController@topicWeight');

    $router->get('/hot/index','HotWordsController@index');
    $router->get('/hot/index/{id}/edit','HotWordsController@create');
    $router->get('/hot/index/create','HotWordsController@create');
    $router->post('/hot/add','HotWordsController@add');
    $router->post('/hot/sort','HotWordsController@sort');
    $router->delete('/hot/index/{id}','HotWordsController@del');

    $router->get('/myright/list','MyRightController@list');
    $router->get('/myright/list/create','MyRightController@create');
    $router->get('/myright/list/{id}/edit','MyRightController@edit');
    $router->post('/myright/save','MyRightController@save');
    $router->post('/myright/{id}/update','MyRightController@editSave');
    $router->delete('/myright/list/{id}','MyRightController@deletebyId');

    $router->get('/myrightcorner/list','MyRightCornerController@list');
    $router->get('/myrightcorner/list/create','MyRightCornerController@create');
    $router->get('/myrightcorner/list/{id}/edit','MyRightCornerController@edit');
    $router->post('/myrightcorner/save','MyRightCornerController@save');
    $router->post('/myrightcorner/{id}/update','MyRightCornerController@editSave');
    $router->delete('/myrightcorner/list/{id}','MyRightCornerController@deletebyId');
    $router->post('/myrightcorner/sort','MyRightCornerController@sort');

    $router->get('/export/index', 'ExportController@index');
    $router->get('/export', 'ExportController@export');

    $router->get('/import/index', 'ImportController@index');
    $router->post('/import/edit', 'ImportController@edit');

    $router->get('/creatorcoupon/list','CreatorCouponController@list');
    $router->get('/creatorcoupon/list/create','CreatorCouponController@create');
    $router->post('/creatorcoupon/sort','CreatorCouponController@sort');
    $router->get('/creatorcoupon/list/{id}/edit','CreatorCouponController@edit');
    $router->post('/creatorcoupon/save','CreatorCouponController@save');
    $router->post('/creatorcoupon/{id}/update','CreatorCouponController@editSave');
    $router->delete('/creatorcoupon/list/{id}','CreatorCouponController@deletebyId');

    $router->get('/area/apply/index','AreaAuditController@index');
    $router->get('/apply/index/set/{id}/{status}', 'AreaAuditController@setStaus');//精选
    $router->get('/area/user/list','AreaAuditController@userList');
    $router->get('/area/fail/list','AreaAuditController@failList');

});